#pragma once
#include "Widget.h"
#include <map>
#include <vector>
#include "GuiEvent.h"


class Button :public Widget
{
	std::map<int,std::vector<ISubscriber*>> subs;

	public:
	Button(void);
	~Button(void);

	void onEvent(GuiEvent & evt);
	virtual void draw(SDL_Renderer * renderer);

	void subsribeEvent(MouseEventType evt,ISubscriber* subscriber);
};

